//
//  AEAppDelegateTool.h
//  AESOLAR_IOS
//
//  Created by Bin Tang on 2024/10/13.
//  Copyright © 2024 Mr.Wang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "EDSCustomRequest.h"
#import "AEUserInfoModel.h"
#import "TYZBaseNavigationController.h"
#import "TYZCustomTabBarController.h"
#import "AESysConfigModel.h"
//#import "AESysConfigRequest.h" // 得到配置信息
//#import "AEAccountShareRequest.h" // 分享

NS_ASSUME_NONNULL_BEGIN

@interface AEAppDelegateTool : NSObject

@property (nonatomic, strong) TYZCustomTabBarController *rootTabBar;

/// 用户信息
@property (nonatomic, strong, nullable) AEUserInfoModel *userInfoModel;

/// 社群
@property (nonatomic, assign) NSInteger newsGroupId;

// selectedIndex

@property (nonatomic, assign) NSInteger selectedTabBarIndex;

/// 配置信息
@property (nonatomic, strong) AESysConfigModel *configModel;


+ (instancetype)sharedInstance;


/// 保存用户信息
/// - Parameter userInfo: userInfo description
- (void)saveUserInfo:(AEUserInfoModel *)userInfo;

/// 获取用户信息
- (AEUserInfoModel *)getUserInfo;

- (NSString *)getUUID;

/// 删除用户信息
- (void)removeUserInfo;



/// 获取用户信息
/// - Parameter completion: completion description
- (void)requestWithUserInfo:(RequestCompletionBlock)completion;

/// 到主视图
- (TYZCustomTabBarController *)getMainTabBarVC;

/// 得到配置信息
/// - Parameter completion: completion description
- (void)requestWithSysConfig:(RequestCompletionBlock)completion;

/// 显示分享弹窗
- (void)showShareVC:(UIViewController *)vc;

/// 分享成功后调用的接口
/// - Parameter completion: completion description
- (void)requestWithShareSuccess:(RequestCompletionBlock)completion;

@end

NS_ASSUME_NONNULL_END
